package config

type Email struct {
	Enabled       bool   `yaml:"enabled"`
	Smtp_Host     string `yaml:"smtp_host"`
	Smtp_port     int    `yaml:"smtp_port"`
	Smtp_from     string `yaml:"smtp_from"`
	Smtp_password string `yaml:"smtp_password"`
	Smtp_to       string `yaml:"smtp_to"`
}
type EmailMessage struct {
	Subject string `json:"subject"` // 邮件主题
	Body    string `json:"body"`    // 邮件正文
}

func NewEmailMessage(subject, body string) *EmailMessage {
	return &EmailMessage{
		Subject: subject,
		Body:    body,
	}
}
